package com.zxj.api.domain.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.zxj.api.domain.UserExeResult;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.*;

import java.util.List;

/**
 * 用户提交题目判题结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Schema(name = "UserQuestionResultVO", description = "用户提交题目判题结果")
public class UserQuestionResultVO {
    /** 是否通过标识 0  未通过  1 通过*/
    @Schema(name = "pass", description = "是否通过标识 0  未通过  1 通过")
    @NotNull
    private Integer pass;

    /** 异常信息 */
    @Schema(name = "exeMessage", description = "异常信息")
    private String exeMessage;

    /** 用户执行结果列表 */
    private List<UserExeResult> userExeResultList;

    /** 判题结果得分*/
    @JsonIgnore
    @Schema(name = "score", description = "判题结果得分")
    private Integer score;
}
